﻿<!--FORM-->
<form name="form1" action="${def:context}${def:actionroot}/search" method="POST">

<table class="formgrid" width="70%">

	<!--layout-->
	<col width="40%"> <!--labels-->
	<col width="60%"> 

	<!--form title-->
	<tr>
		<th colspan="2">
			过滤条件
		</th>
	</tr>

	<!--separator row-->
	<tr height="10px">
		<td colspan="2"></td>
	</tr>
			
	<!--form fields-->
	
	<tr>
		<td class="formlabel">用户登录名: </td>
		<td>
		<input name="userlogin"  value="${fld:userlogin}" type="text" size="30" maxlength="80" >
		</td>
	</tr>

	<tr>
		<td class="formlabel">用户姓氏: </td>
		<td>
		<input name="lname"  value="${fld:lname}" type="text" size="30" maxlength="80" >
		</td>
	</tr>

	<tr>
		<td class="formlabel">用户名称: </td>
		<td>
		<input name="fname"  value="${fld:fname}" type="text" size="30" maxlength="80" >
		</td>
	</tr>
	
	<tr>
		<td class="formlabel">用户角色: </td>
		<td>
			<select name="role_id" size="1">
			<option value="">[全部]</option>
			<rows>
				<option value="${fld:role_id}">${fld:app_alias} - ${fld:description}</option>
			</rows>
			</select>		
		</td>
	</tr>

	
	<tr>
		<td></td>
		<td>

		<br>
		排序:<br>

		<select name="orderby" size="1">
		  <option value="userlogin">用户登录名</option>
		  <option value="fname">用户名称</option>
		  <option value="lname">用户姓氏</option>
		</select>

		<select name="sortmode" size="1">
		  <option value="ASC">升序</option>
		  <option value="DESC">降序</option>
		</select>
		
		<br><br>

		每页记录数量:<br>

		<select name="pagesize" size="1">
		  <option value="">[默认]</option>
		  <option value="10">每页10条记录</option>
		  <option value="20">每页20条记录</option>
		  <option value="50">每页50条记录</option>
		</select>
		
		</td>
	</tr>	

	<!--separator row-->
	<tr height="10px">
		<td colspan="2"></td>
	</tr>
	
	<tr>
		<td align="center" colspan="2">
			<input type="submit" value="查询">
			<input type="button" value="重置" onclick="clearForm('form1')">
			<input type="button" value="新增用户" onclick="onAddNew()">
		</td>
	</tr>

	<!--separator row-->
	<tr height="10px">
		<td colspan="2"></td>
	</tr>

</table>

</form>

<script language="javascript">

	
	
	function onAddNew()
	{
		var returnURL = "${def:context}${def:actionroot}/filter";
		var url = "${def:context}${def:actionroot}/addnew?return.url=" + returnURL;
		window.location=url;
	}	
	
</script>
<!--END FORM-->

